﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SWDataDB.Models;
using SWDataDB.DAL;


namespace SWDataDB.BLL
{
    class KCInfoDelete
    {
        public KCInfoDelete(){}

        /// <summary>
        /// 根据删除著录表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int ZLInfoDelete(int id)
        {
            ZLInfo info = new ZLInfo();

            return info.DeleteZLInfoByID(id);
        }

        public int YXInfoDelete(int id)
        {
            YXInfo info = new YXInfo();

            return info.DeleteYXInfoById(id);
        }

        /// <summary>
        /// 实体信息录入
        public int UTILInfoDelete(int id)
        {
            UTILInfo info = new UTILInfo();

            return info.DeleteUtilInfoById(id);
            /*            return 1;*/
        }

        public int XGDataDelete(int id)
        {
            XGInfo info = new XGInfo();

            return info.DeleteXGInfoById(id);
        }

        public int BBInfoDelete(int id)
        {
            BBInfo info = new BBInfo();

            return info.DeletebbInfoById(id);
        }

        public int BPInfoDelete(int id)
        {
            BPInfo info = new BPInfo();

            return info.DeletebpInfoById(id);
        }

        public int GPInfoDelete(int id)
        {
            GPInfo info = new GPInfo();

            return info.DeleteGPInfoById(id);
        }

        public int YPInfoDelete(int id)
        {
            YPInfo info = new YPInfo();

            return info.DeleteYPInfoById(id);
        }

        public int ZKImgDelete(int id)
        {
            ZKImageInfo info = new ZKImageInfo();

            return info.DeleteZKImgInfoByID(id);
        }

        public int BBImgDelete(int id)
        {
            BBImageInfo info = new BBImageInfo();

            return info.DeleteBBImgInfoByID(id);
        }
    }
}
